import router from "@/router";
import store from "@/store";
import { setTitle } from "@/utils/utils";

router.beforeEach(async (to, from, next) => {
  // const info = await store.getters.userInfo
  // if (!info?.userName) {
  //   await store.dispatch('user/GetInfo')
  // }
  next();
});

router.afterEach((to, from) => {
  setTitle(to?.meta?.title);
});
